﻿using FarseerPhysics.Dynamics;
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GameName1
{
    class LineSensor
    {
        Vector2 _position;
        Arena _arena;
        private Robot _robot;
        public LineSensor(Robot robot, Vector2 position)
        {
            _robot = robot;
            _position = position;
        }

        public bool State
        {
            get { return _robot.Arena.BelongsToMargin(_robot.Position+_position); }
            set { return;}
        }

    }
}
